<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/all.conf.php');
require_once(__PHY_LIB.'/class/uWork.class.php');

/// 底部的推荐视频 ///
$oFooterWorks = new uWorkList('cms_work cw INNER JOIN unit_work w ON w.id=cw.work_id');
$oFooterWorks->cfgField("w.*");
$oFooterWorks->cfgWhere("cw.location='footer'");
$oFooterWorks->cfgOrder("cw.rank");
$oFooterWorks->load();
$rFooterWorks = $oFooterWorks->fetchArray();

if (is_object($this)) {
	$this->assign('rFooterWorks', $rFooterWorks);
}
else {
	echo '<pre>'; print_r($rFooterWorks); echo '</pre>';
}
?>
